﻿using System.Collections.ObjectModel;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using HandyControl.Tools;

namespace FlosVita;

/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window
{
    public MainWindow()
    {
        InitializeComponent();
        this.DataContext = new MainViewModel();
    }
}

public class SearchResult
{
    public string Name { get; set; }
    public string Phone { get; set; }
    public string Gender { get; set; }
    public string Age { get; set; }

    public SearchResult(string name, string phone, string gender, string age)
    {
        Name = name;
        Phone = phone;
        Gender = gender;
        Age = age;
    }

}


public class MainViewModel
{
    public ObservableCollection<SearchResult> SearchResults { get; set; }

    public MainViewModel()
    {
        SearchResults = new ObservableCollection<SearchResult>
        {
            new SearchResult("John", "1234567890", "Male", "25"),
            new SearchResult("Jane", "0987654321", "Female", "30"),
            new SearchResult("Bob", "5555555555", "Male", "40"),
            new SearchResult("Alice", "9999999999", "Female", "20"),
            new SearchResult("Tom", "1111111111", "Male", "35"),
            new SearchResult("Mary", "2222222222", "Female", "28"),
            new SearchResult("David", "3333333333", "Male", "32"),
            new SearchResult("Lisa", "4444444444", "Female", "23")
        };
    }
}